package com.ssy.lingxi.report.api.vo.request;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.time.LocalDateTime;

/**
 * 新增下级会员统计VO
 * @author 伍将
 * @date 2020/12/8
 * @version 2.0.0
 */
public class AddSubMemberVO {

    /**
     * 上级会员id
     */
    @NotNull(message = "会员id要大于0")
    @Positive(message = "会员id要大于0")
    private Long memberId;

    /**
     * 上级会员角色id
     */
    @NotNull(message = "角色id要大于0")
    @Positive(message = "角色id要大于0")
    private Long roleId;

    /**
     * 成为下级会员的时间
     */
    @NotNull(message = "订单金额不能为空")
    LocalDateTime dateTime;

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public LocalDateTime getDateTime() {
        return dateTime;
    }

    public void setDateTime(LocalDateTime dateTime) {
        this.dateTime = dateTime;
    }
}
